import { MobXProviderContext } from 'mobx-react'
import { useContext } from 'react'

export function useMobxStore(name: string): any {
  return useContext(MobXProviderContext)[name]
}